<template>
	<view class="content">
		<view class="uni-form-item uni-column">
			<input :value="dataRef.a" class="uni-input" focus placeholder="自动获得焦点" />
		</view>
	</view>
</template>

<script setup>
	import {
		onBeforeMount,
		onMounted,
		onBeforeUpdate,
		onUpdated,
		onBeforeUnmount,
		onUnmounted,
		onActivated,
		onDeactivated,
		computed,
		ref
	} from "vue"
	import {onLoad,onReady,onShow,onHide,onUnload,onPageScroll} from "@dcloudio/uni-app"
	const dataRef = ref({
		a:'1111',
		b:3333,
		c:{
			a:1111,
			b:2222,
		}
	})
	onLoad((event)=>{
		console.log('onload...tabBar2', event)
	})
	onReady((event)=>{
		console.log('onload...tabBar2', event)
	})
	onShow((event)=>{
		console.log('onload...tabBar2', event)
	})
</script>

<style lang="scss" scoped>
	.uni-form-item{
		padding: 4px 12px;
		background-color: gainsboro;
		margin: 2px;
		border-radius: 6px;
	}
</style>